package parser;

import args.Args;
import args.LogArgs;

/**
 * @author leo
 * @date 2021/6/21
 */
public class LoggingParser{
    private static final String LOGGING_FLAG = "-l";
    private static final String DEFAULT_VALUE = "false";

    public Args parse(String args) {
        if(args.contains(LOGGING_FLAG)){
            return new LogArgs(LOGGING_FLAG,"true");
        }
        return new LogArgs(LOGGING_FLAG,DEFAULT_VALUE);
    }
}
